﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MiniSched.Orm {

    public class Volunteer : Entity {

        [Required]
        [MinLength(3)]
        [MaxLength(50)]
        public string FormattedName { get; set; }

        [EmailAddress]
        public string EmailAddress { get; set; }

        public Organization Organization { get; set; }
        public int OrganizationId { get; set; }

        public UserProfile UserProfile { get; set; }
        public int? UserProfileId { get; set; }

        public ICollection<VolunteerJob> VolunteerJobs { get; set; }
    }
}
